package cqrtplm.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.sql.Timestamp;

@Data
@Entity
@Table(name = "RT_CERT_FIELD_EUEMISSIONSNORELATION", schema = "SYSTEM")
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "客户备案机型和欧排号关系实体类")
public class RtCertFieldEuemissionsnoRelationDO {

    @Id
    @Column(name = "ID", length = 100, nullable = false)
    @ApiModelProperty(value = "主键ID")
    private String id;

    @Column(name = "FILEDID", length = 100, nullable = false)
    @ApiModelProperty(value = "备案机型ID", required = true)
    private String filedId;

    @Column(name = "CUSTOMID", length = 100, nullable = false)
    @ApiModelProperty(value = "客户ID", required = true)
    private String customId;

    @Column(name = "EUNOID", length = 100)
    @ApiModelProperty(value = "欧排号ID")
    private String eunoId;

    @Column(name = "STATE", length = 6)
    @ApiModelProperty(value = "生命周期状态（如：草稿/生效/失效）")
    private String state;

    @Column(name = "CREATEUSERID", length = 100)
    @ApiModelProperty(value = "创建人ID")
    private String createUserId;

    @Column(name = "CREATEUSERNAME", length = 100)
    @ApiModelProperty(value = "创建人")
    private String createUserName;

    @Column(name = "CREATETIME")
    @ApiModelProperty(value = "创建时间")
    private Timestamp createTime;

    @Column(name = "UPDATEUSERID", length = 100)
    @ApiModelProperty(value = "更新人ID")
    private String updateUserId;

    @Column(name = "UPDATEUSERNAME", length = 100)
    @ApiModelProperty(value = "更新人")
    private String updateUserName;

    @Column(name = "UPDATETIME")
    @ApiModelProperty(value = "更新时间")
    private Timestamp updateTime;

    @Column(name = "STOPUSERID", length = 100)
    @ApiModelProperty(value = "停用人ID")
    private String stopUserId;

    @Column(name = "STOPUSERNAME", length = 100)
    @ApiModelProperty(value = "停用人")
    private String stopUserName;

    @Column(name = "STOPTIME")
    @ApiModelProperty(value = "停用时间")
    private Timestamp stopTime;

    private String RELATIONSTATE;
    private String ratomodel; //公司机型
    private String model; //备案机型
    private String khmc;  //客户名称
    private String khxh;  //客户名称
}